package com.per.mybootall.test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: yyy
 * Date: 2022/6/6
 * Time: 17:34
 * Description:
 */
public class test21 {
  public static void main(String[] args) {
    String[] strList={"1","2","3"};
    List<String> arrayList=new ArrayList<>(Arrays.asList(strList));
    arrayList.forEach(array-> System.out.print(array));
    arrayList.add("4");
    System.out.println("");
    arrayList.forEach(array-> System.out.print(array));

    System.out.println("----------------------------------------------------------------");
    System.out.println(Integer.valueOf("10")==new Integer("10"));
    System.out.println(Integer.valueOf("1000")==new Integer("1000"));


    System.out.println(Integer.valueOf("10").compareTo(new Integer("10"))==0);
    System.out.println(Integer.valueOf("1000").compareTo(new Integer("1000"))==0);



  }
}
